import { Body, Controller, Post } from '@nestjs/common';
import { OrderEmitterService } from './order-emitter.service';
import { CreateOrderDto } from './dto/create-order.dto';

@Controller({
  path: 'order-emitter',
})
export class OrderEmitterController {
  constructor(private readonly orderEmitterService: OrderEmitterService) {}

  @Post('create')
  create(@Body() createOrderDto: CreateOrderDto) {
    return this.orderEmitterService.create(createOrderDto);
  }
}
